package com.cdks.wuxiu.api.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdks.wuxiu.api.model.dto.WalletInfoDTO;
import com.cdks.wuxiu.entity.mysql.UserWalletInfo;


/**
 * 钱包信息表 Mapper 接口
 */
public interface UserWalletInfoMapper extends BaseMapper<UserWalletInfo> {
    int expend(@Param("userId") long userId, @Param("cost") long cost, @Param("costType") int costType, @Param("statisType") int statisType, @Param("expendType") long expendType, @Param("keepCost") long keepCost);
    int income(@Param("userId") long userId, @Param("cost") long cost, @Param("costType") int costType, @Param("statisType") int statisType); 
    
    WalletInfoDTO getInfoWithScore(@Param("userId") long userId, @Param("expire") long expire);
}
